Refactor script/server

* Made style consistent
* Add helper functions to print messages
* Abort script if critical command fails
* Made number of started Sidekiq workers configurable again
Merge pull request #4117 from MrZYX/script_server

Refactor script/server