Added dedicated server support

Standalone dedicated server with client support.
Several bug fixes and updated layout.