cli: allow username to be passed in

This is necessary for authentication schemes on the backend (LDAP, etc.).

Changes from v1:
 * Fixed unittests

Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>