Changed the way in which the server is started
Fixed a bug in starting the background which was causing UI to freeze
Identified a critical bug that comes into play when a given port is in use
Other small fixes