add `/enqueue` endpoint

First pass at an `/enqueue` endpoint: it's unfortunately a little messy and will probably break if it doesn't get valid JSON.

Any feedback is definitely welcome! :)