Memory leaks

The app now runs without memory leaks as far I've been able to see.

I've had the app running for nearly 3 hours and the memory hasn't gone over 60MB.

Also removed some unwanted classes and modified some of the view controllers to be views.