Mostly finished

Everything is up and running. Need to add css and redesign to use a
proper model and OO design.