changed app editor to use the service map

Ignore-this: a1813ae40d5adc26bbadb1be13b0ddf6

Replacing the if/else checks in check_mail with the user of a service map.
This should help a bit with readability instead of a large if/else mess.

darcs-hash:20140930224223-c21fe-83b78306e011c700c8a0d0ed50342b2bcffa26e4
no place left to hide

Ignore-this: b092166fc6b65b3afad4fa1794d9022e

darcs-hash:20141001033851-c21fe-a11973e6e96d703a05d054238480638e577d821c
compiles clean with -Wall

Ignore-this: e9a6e7c9fc6e58d2c884bddd8e8bfa75

Now everything compiles clean with -Wall -Werror.
Compiler found a couple of missed return statements. nice!

darcs-hash:20141001033919-c21fe-9cd355680661b01413ad4f8df816c7c4ba8615df