pristine ionic from 736673b9d305b23e16c55dfb0aa07b0daf6a4050
more cleanup and rearranging
ionic 0.9.20
Merge branch 'ionic-pristine'

Conflicts:
	app/scripts/angular-3rdparty/ionic-angular.js
pristine ionic from 1385e7c9e9e2824ba2e625c35b7c7d89ee64d2e3
Merge branch 'ionic-pristine'
TONS of fixes since the last proper update

* reworked initialization
* handle mobile/desktop-browser differences better
* add a real API for performing actions only when on mobile
* update Ionic to 0.9.21 prerelease
* rewrite deck viewer to use less memory
* make database replication aware of running in the background
  on mobile devices
* replicate immediately when the user modifies a favorite
  or an event
* fix scrolling on touch devices to not allow dragging the
  UI to the left or right when dragging at an angle