Merge pull request #69 from kitwestneat/api-v2

modified submit() return code so queue is cleaned properly
Should fix #61.
Fix #61, this time for real.
don't unlink session key

because session keys have an infinite lifetime, keep it until the user
revokes it.