Fixes #290

Make CLI history persistent across sessions.
Create homedir for new users. Save CLI history in their home.
Merge pull request #319 from schakrava/issue#290_cli_history

Fixes #290