minor code cleanup
minor change to comply with the new WS APIs
fix for issue #142 (merge from alpha, see https://github.com/thehogfather/pvsio-web/commit/e6927e6a3bb0481bbd25b83d6ab71c96f4820d81)
Merge branch 'master' of https://github.com/thehogfather/pvsio-web