Fix smoke tests
Make error message JSON in API
Warn about submissions on no trail. See #57.