Fixed many coding guidelines issues
Continued work on upgrade path via login hook listener
New spec file with notes