Moved cmd and other files into apps/cores/lib and updated setup.py