start converting app to remove globals
finish some refactoring
refactor renderer init and binding functions a bit