Full revamp beta

Full reorganization of the library, as well as transfer over to
JavaScript instead of CoffeeScript.