Initial Commit of Codebase rewrite.  The goal is to follow modern js modular patterns and restructure to allow easy integration with other extensions.