SMS object is stored in the instance, rather than on the class. That way, you can access the sms object inside the routes
Added before and after callbacks. Also added redirect_to