/applications/createLegacy returns wrong Location

JAX-RS specifies that the Response.created(URI) is relative to the
request URI, in this case /v1/applications/createLegacy. This means that
the created Location: header looked like
/v1/application/createLegacy/123456, which is incorrect. Changed method
to build an absolute URI so that JAX-RS does not try to change it.
Fix failures in ApplicationResourceIntegrationTest

Jersey resource tests seemed to get very confused when trying to use the
application create endpoint that takes byte[] and tries to autodetect.
Changed to use the explicit 'createLegacy' endpoint instead.

Sensors come back in the format `"stopped"` but test was looking for
`stopped` without quotes - fixed.
Merge pull request #1248 from richardcloudsoft/fix/ApplicationResourceIntegrationTest

Fix ApplicationResourceIntegrationTest