Move everything out of the ui directory

It's all UI code now!