Migrate the service layer out to gourd

Migrate the service layer out as a separated project gourd/service.