WIP refactoring, added storing of credentials in key chain.
WIP: added EWHost global def
switching to localhost for now