Not using the global namespace

Pulling everything out of the global namespace and putting most everything inside of prototypes so we can separate the code out into being more like an object that we all know and love. Should be easier to maintain than spaghetti code down the road.