improvements to rest example, more includes for irb bootstrap