fix warnings
fix warnings

Various things to make jshint (and cloudpebble IDE) be quiet.  Primarily lifted from parts of  pull request 6 from TheNetStriker.
openhab/openhab.pebble,llamahunter/openhab.pebble,llamahunter/openhab.pebble,openhab/openhab.pebble