Added factory func and userrest route for getting free times