Allow a fn or str in :redirect option of wrap-access-rules

For issue #57