Prefs API

A mostly-complete implementation of `forge.prefs` that uses `localStorage`.