Set model attrs for locked and let listeners handle redirs (bug 963640)
Add and test .error-code for locked view and add test for bad JSON
Merge pull request #26 from muffinresearch/handle-locked-flow

Set model attrs for locked and let listeners handle redirs (bug 963640)