refactored memory configuration

extracted memory configuration in its own plugin.
Will ease adding ovf boot option.

Change-Id: I603420a215c77b9c4eb59db97adb302edaed8492
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>