JSON Web Token auth and don't send undefined values

Hope you accept these two into main line so I don't have to use my fork.  Thanks for your considerations.

1) JWT - is a standard Auth method with swagger-ui can easily support with this very minor code change.  It's using a trick that JWT tokens have two periods in them, and regular apiKeys don't have any.

2) Looks like an old ghost is back to haunt, sending undefined parameters.