CLOUDSTACK-6898: [Hyper-V] fixed rdp console freezing during reboot.

Console was freezing because we read data from socket in blocking mode.
During reboot it was blocking infintely.
To fix issue, now we are reading data in non-blocking mode.
In non-blocking mode I set the timeout to 5 seconds.
CLOUDSTACK-7503: Fixed few coverity issues
CLOUDSTACK-7517: loading ftp modules in VR
CLOUDSTACK-7519: Using bound/unbound methods instead of directly calling API methods from test case

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
CLOUDSTACK-7528: More verbose logging when sending alert fails

When sendAlert is called on an AlertManager impl, if it fails it logs that
something was wrong but does not log the body of the issue/error. This means
we tell the user/admin that there was an issue but don't share the "issue"
with them at all as the email alert fail (or that they were not initialized).

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 885c02dbd8b40d654f4a84fca8474ff88bc7ca5e)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	server/src/com/cloud/alert/AlertManagerImpl.java
	usage/src/com/cloud/usage/UsageAlertManagerImpl.java
CLOUDSTACK-7520: [UI] keep advanced search parameters visible after search has been run.

- Preserve the advanced search parameters, so that when the advanced search box is shown again,
it is populated with the values selected/entered previously, unless they have navigated away from the search results page,
or applied any additional filters/search parameters.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>
Added "usageid" parameter to the "listUsageRecords" API call. Can be used only together with "type" parameter specified

Signed-off-by: Ilia Shakitko <i.shakitko@tech.leaseweb.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
CLOUDSTACK-6099 live migration is failing for vm deployed using dynaic compute offerings with NPE