code cleanup; adding more test hooks
updated example app flow
updated complex iPhone example app; WIP on APsimplePass lost password strategy, more work needed
Merge branch 'master' of https://github.com/project-imas/app-password