Update to sdk 18

This is a partial refactor to facilitate:
* fragments
* background video
* cordova support