Add user and password parameters to _do_login

The user and password parameters are needed for more complex login
tests (and negative ones) I plan on writing, as well as to a password
change test that will be submitted soon.
The default values for both attributes is None, so the login test
already merged won't be affected.

I also modified the if statement - it now checks whether the user is
the admin, otherwise functions the same way for all users.

https://wiki.openstack.org/wiki/Horizon/Testing/UI

Partially implements blueprint: selenium-integration-testing

Change-Id: Id2987103ab0933c0d3b5eb75a25679a9a9bcca55
Synced jsonutils from oslo-incubator

The sync includes change that drastically enhances performance on Python
2.6 with fresh simplejson library installed.

The latest commit in oslo-incubator:
- 0f4586c0076183c6356eec682c8a593648125abd

The sync adds a new 'strutils' module that is now used in jsonutils.

Change-Id: Ib3dc0b713ed90396919feba018772243b3b9c90f
Closes-Bug: 1314129
Merge "Synced jsonutils from oslo-incubator"
Merge "Add user and password parameters to _do_login"