Use devise's after_sign_in_path_for instead of forcing root_path

This makes the login flow more customizable

Fixes #52
Only return a value from model_class method if constant is available

Fixes spree/spree#2628