Powerful replacer for built-in Angular's $cookieStore (https://github.com/angular/angular.js/issues/950)