Added parsing of uses constraints

Now parses uses constraints on package exports.

Due to the way @RelatedToVia is currently working this
required the slightly ugly workaround of pulling out all the packages
and saving them without uses constraints before adding back the
uses constraints and saving them again.