added ability to set port numbers for http and wsUI port, and base spacebrew server. Refactoring code.
removed logging statement from front-end.js.