Added some initial work to the UI

See test.html for working UI. Not working on index.html properly yet.