Added util class for work with repository

@vparfonov