Split frontend and backend.

Same as https://github.com/spree/spree_auth_devise/pull/164 but for 2-2-stable