Error handling, cookie/session management. Also added some test scripts.
Merge branch 'master' of https://github.com/col726/PMSP