Numerous changes (need to commit more often!):

1. Editor is now usable (but basic)
2. Vector library added and major refactoring so that the code makes use of it. This was done to remove repeated / messy code
3. Various bug fixes