Implemented a whole load of stuff. Basically, this is a working prototype with strictly limited feature set.