fix bug in http-api
add add_payment to Contract model
add BGUser model