refactor feed a bit, add grape for API