Massive code cleanup (1)
WARNING: DON'T USE IT ON SERVER! (more info below)
Note: This will compile correctly, but this is NOT FULLY WORKING VERSION! There are many features that will be added soon (I am rewriting them).

API will we rewritten, and will include many more events!

I pushed this commit because I want all of you to see how will for ex. commands work now, because I changed it a little bit.