Add support for account lockout (fix #58)

This adds the feature described in #58.
10 -> LOCKOUT_LIMIT in the comment.