Added graphics manager and did global code optimazations/organization. @...

...Jake, git:jakehaas.