JS constants

moved ApplicationState to classes, b/c that's what it is
moved a lot of string objects to a constants module