RESTful endpoint for device metadata import

Done for https://issues.jboss.org/browse/AGPUSH-943
if parsing fails on line 261, null pointer will happen on here on `devices.size()`