Refactor project and clean up code

Implemented auto refresh while server is running (currently ignores user
interaction while editing. Will be fixed in next versions)

Handle exception logging. The stack trace has now the same time as the
exception message.

Displays command line only while server is present.