add 307 support to lockstep, example callback and update test scripts
simplified complicated case expressions
Merge pull request #2 from heroku/307_support

add 307 support to lockstep, example callback and update test scripts