Remove model name from nickname, swagger spec understands op context.

This removes the redundancy from paths in swagger-ui such as
`/api/user/user_login`. It will now be displayed simply as
`/api/user/login`.

This is consistent with how `nickname` is used in Swagger examples.
Yeah, that’s the best idea, to make the test be the spec.

Hugely busy right now but I will crank this out soon when I have time. Thanks
> On Nov 25, 2014, at 6:05 PM, Miroslav Bajtoš <notifications@github.com> wrote:
> 
> In lib/route-helper.js:
> 
> > @@ -149,8 +149,9 @@ var routeHelper = module.exports = {
> >        // is specified in the first response message.
> >        operations: [{
> >          method: routeHelper.convertVerb(route.verb),
> > -        // [rfeng] Swagger UI doesn't escape '.' for jQuery selector
> > -        nickname: route.method.replace(/\./g, '_'),
> > +        // [strml] remove leading model name from op, swagger uses leading
> > +        // path as class name so it remains unique between models.
> > +        nickname: route.method.replace(/.*?\./, ''),
> If I understand you correctly, you are saying that your version shortens foo.bar.baz to bar.baz, while mine shortens to baz, is that correct? In that case, /^[^.]*\./ works as requested.
> 
> Anyways, let's not be too picky about the regex. Please add enough unit test cases to make it clear what is the expected behaviour for different input. The regex can remain an implementation detail that way.
> 
> —
> Reply to this email directly or view it on GitHub <https://github.com/strongloop/loopback-explorer/pull/73/files#r20877289>.
>