Move over apps/constants (bug 1021196)

https://bugzilla.mozilla.org/show_bug.cgi?id=1021196

Note: I removed some old unused constants as well. I haven't squashed the commits yet so that you can see the removals, everything should be in the first commit.