Added spec tests for sub routing and implemented redirections for trailing slashes.