Update bcrypt requirement to include version
Update __init__ to use app factory pattern