inject relevant services instead of service container
add gateways and managers
clean up docblocks
improve php docblocks
add missing class docblocks
remove unneeded blank lines
use entity when retrieving failed login attempts from session