Split out capability and redirect URL bits to methods, add docs.