updated code to work with melon.js 1.0 and som small fixes

I have tried to keep the original functionality in this version.. and only added changes that make it work on melon.js 1.0  I might have some small adjustments left in from changes that I plan to apply in my own fork later. (like free wasd movement with mouse-look, like mapview in doom, more advanced and maybe authoritative server network-code, more physics-based movement with forces and friction)

Some bugs that where obvious (like the walk-animation and speeding-by running diagonal) I have fixed but some other small things like the kill-animation I can see is planed for .. I have not done anything about.

Most of the things done is quite straightforward when seeing the code (I hope) but 2 things is worth noting.
1: I still have to load socket.io before melon.js .. otherwise it will not work and I'm not smart enough to figure out why
2: The empty object-layer in middleearth-map had to be removed since melon.js caches if it find it but has nothing in it. 

Well just want to contribute back .. This was very nice code to learn from.