Add memoization for the `authority?` function.

- Add dependency for the `memoist` gem.