Put remember code in provider

So we have a single point to choose between localStorage or $cookieStore