Add option to refresh metadata on a timer

Default to every 10 minutes to match behaviour of jvm reference implementation.

As discussed on #144
Merge pull request #146 from Shopify/auto-refresh-metadata

Add option to refresh metadata on a timer