Topic/mobile apps api

Enjoy. This isn't fully baked yet but is a big enough job that I think getting this initial, tested migration through is a good stopping point for now.

Note that these commits aren't really standalone but the there isn't really a great grouping and this is probably good enough.