Add "set cost"

Adding the ability to set a "cost" (iterations) for bcrypt. Also included is the ability to get the factory's implementation and set a prefix. Updated some tests for new functionality.