BLTI-230

Lots of incoming security, sanity, and error checking.  Define 
JSON error response.



git-svn-id: https://source.sakaiproject.org/svn/basiclti/branches/BLTI-230@128391 66ffb92e-73f9-0310-93c1-f5514f145a0a