Make scalr endpoint fully configurable

Allows user configure end point port and actual api url which is different for on premise/open source installation

Url example for on premise scalr:
Scalr.endpoint = "http://192.168.0.1/api/api.php"