Improved backend for searching in filtering of ocntracts.

Substituted HTML anchors and JS by a Django form.
Added date range filtering.

Added dependency of bootstrap-daterangepicker.js and moment.js
to choose date range.
Fixed error on which contract search was too much restricting.