refactor(dd-app): add all functions and globals to one global object, ddApp