Removes unused pushmanager_port from str formatting
Refactor get_base_url out of RequestHandler class
Adding tests for get_base_url