Reorganized models, Fixed HTTP_HOST issue in routes and MY_url_helper field

Fixed a bunch of stuff. Also added select boxes to admin screen to
assign document to contract