refactoring and new features

- refactoring: angular services in separate files
- show the accuracy in the devices table
- take care of offline/online clients (Firebase presence infrastructure implemented)
- minor bug fixes