Register store:application as store:main if it exists. Fix tests to use App.destroy
Merge pull request #337 from ckung/master

Register application store if exists. Fix tests to use App.destroy.