Added loads of stuff to the editor

The only things missing are the save/load bar, drop menus and all
objects getting loaded. Probably won't add a Filebrowser due to time
constratint.
Fixed the getSpriteName Function in the TextureManager Class.