get rid of regexp in `checkRequest`

Replaced ugly:

      var regexp = /^\/([^\/]+)\/?([^\/]+)?\/?([^\/]+)?\/?$/

with a simple `split('/')`, this is easier to understand, and much faster. Also replaced the "string" case matching  of the '/socket.io' resource via `substr` with a simpler and faster call to `indexOf` ...