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
Updated _process_backlogged_hosting_devices().

Added the new way of sending flags.

Change-Id: I95ddd8f6fc4ad420d11634f7a3adfcfe4fd042e1
Fix incorrect name used in routertype attribute lookup

Change-Id: If23da4f22e082ce2db4fe7b010b0ac80990d6e92
Updated RPC API version

Change-Id: I35504e8417a1d339f01c501b40d07ecd09189054
Remove bogus get() call

Change-Id: I5637380dfc6596898812855544dc29e3c397fe93
Make service_vm_lib automatically use correct functions

Change-Id: Ic91e409d83ecfa0f4f0f765e09c3f588ad0b0468