Adapted to the new JSON based API, added documentation. Removed some debug statements. Some refactoring.
Added webview to view statistics on the stats tab
Always show simple preferences. Adapted the test function to the JSON based API. Removed most of the settings for tablets.