Added switch so dropzone doesn't need to be compiled before tests.
On error, if a JSON object is returned, the 'error' attribute is now used as error message if available.

#changelog closes #411