Creates some libraries and moves things around.

A lot has been done in this commit hoping to create a better platform.