Add a new callback in rest handler: has_credit -> boolean()

Check whether resource needs payment to be accessed. Return 402 if false.
Update documentation wrt has_credit rest callback