addressed issue https://github.com/globaleaks/GlobaLeaks/issues/959

@hellais do you know a better for storing and sharing constants among the applications?

i've used the pattern described here: https://stackoverflow.com/questions/17384909/directive-to-dynamically-create-an-ng-pattern