(#22) Apps

This is really WIP at the moment. It is also written on top of https://github.com/pouchdb/janus/pull/35 so it will be necessary to make a rebase once that PR is merged.