Cleaning up ssh code. Adding brnach switching for dev environment.