RESTful endpoint for device metadata import

Done for https://issues.jboss.org/browse/AGPUSH-943
exception is swallowed here, let's add e as parameter to `log(..., e)`