Add DEFAULT_APP setting. Issue #397.