Basic user and authentication framework for rails app