Fix unpacking agent relationships

The switch to using only remote IPs broke a relationship unpacker. This
fixes it.
Merge pull request #155 from guidow/fix_agent_unpacker

Fix unpacking agent relationships
Add jobtype model
Fix some model tests
Docstring for JobQueue class
Default values for JobQueue from environment vars
Implement schema endpoint for jobqueues
docstring fixes
POST endpoint for jobqueue index
Docstring for JobQueueIndexAPI.post()
GET endpoint for job queue index API
Make having a queue optional for jobs after all
Fix some tests

The Job class has a column more now. This confused some tests.
GET for single job queues
POST for single job queues
Log job queue name instead of id
BAD_REQUEST return code on bad data in POST
Fix job queue parent reference
DELETE for single job queues
Don't override python-internal name 'type'