MAGE-642: Check login failed extension and probably install / modify it
- added failed login attempts threshold
- added foreign keys to customer_entity and core_store tables