Bump the default cost factor for bcrypt from 8 to 10
Merge pull request #2889 from dave1010/patch-1

Bump the default cost factor for bcrypt from 8 to 10
Fix seed method in Foundation TestCase
Merge pull request #2891 from AoSiX/patch-1

Fix seed method in Foundation TestCase
Move some code into refreshApplication.