Create API endpoint to retrieve contract information on host
Created by: nielscastien
This PR introduces an API call to get basic information about stored contracts on the host.
Usage: curl -A "Sia-Agent" "localhost:9980/host/contracts?status=xxxx"
where xxxx
can be any of the following:
unresolved
succeeded
failed
rejected
all
First step to implement #2465 (closed)