Using store class.
Merge pull request #2 from sdphp/master

Using store class. Fixes an issue in the front controller.