Add support for jobs -k ranges

A little copypasta with a little reworking. Normally, I'd make another PR, but I think these should go together.

Also adds support for ```sessions -d``` ranges as per https://github.com/rapid7/metasploit-framework/pull/4063#issuecomment-60432897.

#4063