Clientre

Refactored client into apps and core. Still need to clean up apps and core API, but a step in the right direction.