Typo fixed in use_ssl method. Refactored the use_stage method. Removed u...

Typo fixed in use_ssl method. Refactored the use_stage method. Removed ui_endpoint and api_endpoint method. Converted these into attr_readers