Various fixes:
- Per-App service in a separate process
- try to reduce allocation caused by preferences