ported core

I hope I didn't miss anything, haven't tested it yet.
All was ported, except the 404 handler (to my knowledge).


I made some changes:
- Namespaced the repositories
- Namespaced the config & views(was needed)
- Routes start from /codex

This is the first time namespacing views for me, so I might have broken the View includes.

I'll be testing this later today, so I might do a second pull request tomorow