Added simple REST client
Many fixes and some improvements of sync mechanism
Added sync button