Session handling improvements
Changed measurement values are now saved back to the server
Minor bug fixes and code cleanup