more app infrastructure
Merge https://github.com/friendica/red into pending_merge