create sessions controller and sessions resource