Bug 1029967 - rewrite Makefile in email app in javascript

Hmm, this backendRegExp is very specific to email's structure: it knows that js/ext/ should be ignored for shared_json calculations since it is third party code that does not use /shared. So maybe this should just be in the email app. That or, allow passing in a function that can verify if a file should be scanned for shared dependencies.