api_user_url now takes a string, an integer or nil.
Generators updated.