Added local forage support

Added local forage support by creating a new file that extends the Persist class.
localforage support is thus strictly opt-in.
A new build target has been created for core+localforage. Localforage has not been added to other builds yet.

A few bugs in the Persist class have also been fixed. However, there are no tests for the Persist functionality yet.