Temporary commit.

Added tons of new files, more packaging stuff, started working on tests.