Really sorry to hear that, with regards to the job is there any chance of some time off (even a week or two) to give yourself some space?
Maybe look into any training/distance learning stuff if you want to do something else?
With regards to the loneliness, is inviting friends from your last place an option - for a night out etc What about doing a night class or something to get you meeting new folk? Easier said than done I know, but just my tuppence worth
Hope things get better for you soon x