Finished most of server/ui interface.

Still need to test.