Add a contract repository and corresponding API controller

Uncategorized