Moving all global config to appConfig and refactoring

- Making textAreaCounter.js work with it
- Removing the parts from projectForm.js that can repeat in other forms too