Fix #406.

Creates a espaceRegExp function in utils.
Adds tests for root option.
Merge pull request #408 from dunglas/fix-routing-subdir

Make the Router to work even in a subdirectory. Fix #406.