Merge from client-server branch

Added: 
* Possibility to sync to server. This makes it possible to have the same data on multiple clients.
Warning: Implementation is single threaded so it will be UI freezes if server is slow in responding.
* Many unit test. Coverage is now ~90%