feature #1791: new saveas hot functionality in the core
feature #1791: manage the image lifecycle during the saveas hot operation
feature #1790: check crl for x509 auth

This patch is based on the work done by Hyunwoo Kim from FermiLab.

More info at http://dev.opennebula.org/issues/1790
feature #1790: bug in crl check function
feature #1791: set the hotplug_saveas state at the beginning of the action. Allow for suspended and poweroff to be saveas-hot valid states.
Merge branch 'feature-1790'
feature #1791: Use HOTPLUG state to prevent saving twice an image. Rename functions and variables to saveas_hot. Use events to triggers save as
feature #1791:HOTPLUG states in delete action
feature #1691: bug reading xen driver configuration
(cherry picked from commit 902c594b2e0c8e0e725627b1529c55de215549f3)
Merge branch 'master' into feature-1791

Conflicts:
	include/LifeCycleManager.h
	include/VirtualMachine.h
	src/lcm/LifeCycleActions.cc
	src/lcm/LifeCycleManager.cc
	src/lcm/LifeCycleStates.cc
feature #1369. Add information to Sunstone conf file and VNC log. Default value for session is memory.
feature #1791: Add all cpds actions
feature #1791: Add onevm saveas --hot to CLI and Ruby OCA
feature #1791: minor typos
feature #1791: more minor typos
feature #1791: proper state checking
feature #1791: proper state checking for simple save action as well
feature #1791: Add new states to JAVA bindings, and Sunstone
bug #1799: Remove NAME from template in VMTemplate and Document classes
feature #1791: fix the ceph cpds script