Refactoring for soporting password auth with the generators
Solcing problem for passing params from Controller to Warden::Strategy for json