Authlogic implemented

Needs testing