Restructure packaging, directories, and build system. Moved SpmMain into com.spm.SpmMain.