Made server port configurable
Added orientation to config file and REST call to get it
Refactored server to use jsonp