Massive clean up.
- Fix indentation problems (space/tabs)
- Remove unused variables/dependencies
- Normalize coding style
- Add missing semicolons
- Convert a lot of public methods to private
- Avoid function declaration in loops
- Avoid function name starting with an uppercase letter (limited to Class)
Fix texture loader argument