[WIP] Reorganize files into separate directories

This tries to push files around into directories that organize similar functionality. It also deprecates more functionality.