Hack to add support for dynamic segments

Props to @stevenwilkin
Checking ruby 2.0 compatibility against Travis-CI
Test support for dynamic segments
Fix tests