Began moving code to a library

- So the prototype class is now successfully wrapped in a closure and
has a init() funct.
- BUT! - So many of the calls are prototype, and those are all public,
which is not wanted for many of the methods
- So those methods have to be moved to be private in the closure.