Changes to UI interface with asynch. General overhaul.

Seperated user interface code and utilities from the main script.
Added code for adding styles in new function.
Still cannot post new answers to test server though.