Made the user creation method configurable

This reduces coupling to ActiveRecord's interface, any Ruby object could work.