Add read secret key config function.
Fix inconsistences in monads library.
Minor rename on config tests.
Improved auth api.