created independent sensor-applet javascript library

It is used by inquiry-space-importer. The error
handling in the inquiry-space-importer is incomplete.
[#57200194]