Move middleware & installed app settings to common.

Keeping them split into all those samples is not really beneficial,
and makes bisecting painful. Instead, keep the common middleware & apps
common, and override as necessary in devel/prod.
Merge pull request #49 from mgorny/merged-settings

Move middleware & installed app settings to common.