Expose RepositoryRuntimeException from the kernel module instead of RepositoryException

Far from perfect, but getting closer. At least all the resource-like models are sanitized.

https://www.pivotaltracker.com/story/show/78860776
Is there an advantage in declaring that the runtime exception of ResourceTypeException is thrown here?