Move core files to 'core' folder. Add CliAction tests