Moved all the cpu code into its own package.