fixed #17

- do not trim trailing slashes
- when mapping '/', also make a map to ''
- code style in integration_spec.rb