core: move files to core package
core: proper dir structure for cargo. Proper lib separation