Refresh profiles and check access tokens on a regular basic

Fixes #3