adding compatibility with firefoxOS

changed the app.platform string to an object with booleans.
Changed the battery-status to support firefoxOS