marmalade-api/upload: ensure JSON error responses
require noflet
marmalade-api/upload: a simple API upload test