Added/updated unit tests.

Corrected unit tests after code refactoring and added new unit tests
for the CiscoCfgAgentWithStateReporting. Coverage is improved now.

Change-Id: I491bb6f11e5aba80ccb275226077b9f5c789aa9a
Use MySQL user and password, if available

When passwordless access to database is not set up,
obtain the MySQL user and password (via companion DevStack
repo commit - c263dd1) and use on all mysql requests.
Fix typo where keyword raise is missing in get_profile_binding
A few bug fixes and cosmetic code changes.

Change-Id: Iaeed8ab7ba3323463ab7d3271c870605f5cb4640
Enabled routertype REST API

Change-Id: Iad8a38ee98cd9b473a9daa47324f2125a618d7b8