tested and working with restore after crash. Clean up of old code, added setter for visitId for testing, homeActivitiy now more or less done, minus assets and UI tweaks