lightweight rails authentication engine.