cli: add the option to retrieve partial history using CLI(#957499)

add the option to retrieve partial history
( e.g history --last 3 ) using CLI instead
of retrieving all history .

adds history --last n and history --first n
to retrive the last or first n history elements

Change-Id: I2321ccc7e3cce2521e0b86f67de2797a8a2b4276
Bug-Url: https://bugzilla.redhat.com/957499
Signed-off-by: Ravi Nori <rnori@redhat.com>