Hardening some back-end API.
Merge pull request #10 from azinger/bug/9_security

Hardening some back-end API.