Add convenience functions for working with the API

Add functions to get repository's errata and packages

Thanks @Ichimonji10 for the `get_packages` implementation.