EUCA-7492

pulled session, login and misc handler code out of __init__ and into session.py. Also removed un-used host rewrite option for security concerns