Added basic custom exceptions and handling to the core
Added ContentType and Field classes. Bugfixes