Add check capability endpoint.

@enejb could you give it a check to the logic?
@justinshreve I am not sure what should be the path for this endpoint. What do you suggest?