refactored setting defaults parameter
refactored API tests
fixed issue where /instance API endpoint did not add returUrl query parameter to response, closes https://github.com/kobotoolbox/enketo-express/issues/104