added websockets interface to dispatch upload events from devices
debugging added
using js libraries from cometa.io