repository: added method to get a repository by name.

related to #74.
api: added handler to get repository data.

Closes #74.
repository: added MarshalJSON.
api: using MarshalJSON to serialize repository.
api: handling with errors in repository handler.