Remove dead files
Refactor source and build process to split out test commands