Use different application ID for debug builds

@crankycoder This fixes #1201 (or at least this is what I had in mind when I filed that issue).
It allows to install clean debug app versions (including version downgrades) while keeping the release version and all its data separately.