Fix compile errors.

Add new error constants, comment out code referencing a nonexistent
request.
Fix permissions.
Merge pull request #37 from wrldwzrd89/master

Fix various compile errors