Changed ILoaderService to throwing actual exceptions.
Moved the metadata implementations to somewhere with less dependencies.