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
OK, I will drop the ResourceTypeException declaration from this commit.