First re-architecture

Re architecture for the basic library foundations. Core functionality
can be included into a given page or context throw normal means, and
won't require a request to be made anymore. This will be re-factored at
the end for consistency and function signatures additions.