Use -[NSString pathComponents] to deal with leading and trailing slashes.

Noticed routable doesn't handle leading slashes in paths, so I thought this could help.

It doesn't support platforms that don't use forward slashes as path separators, but OSX and iOS do.