Continue work on StackPHP compatibility.
Fix a few request bugs.
Merge branch 'master' into refreshing