Nicer UI

Too many changes to record here. Basically all work on the UI, moving
away from php towards ajax data retrieval.