Add optional number to releases command

Add a `-n`, `--num` flag to the `releases` index command, to specify the number
of releases to be shown.

Implements #494
Merge pull request #1012 from catsby/release_number

Add optional number to releases command