Cleanup in cmdlib for standalone function calls
Cleanup in cmdlib for standalone function calls

This patch is a cleanup of the standalone functions in cmdlib. Many of
them too as argument a ConfigWriter instance, but some also took other
parameters from the lu (e.g. proc), and in the future, if we want to
also pass the RpcRunner, we would have to add yet another parameter.

One option is to make all these methods of top-level LogicalUnit class.
I took another approach, and made (almost) all these functions take as
first parameter the lu instance. It's like methods, just not declared
under LogicalUnit.

Reviewed-by: imsnah

leshchevds/ganeti,dimara/ganeti,ganeti-github-testing/ganeti-test-1,andir/ganeti,mbakke/ganeti,bitemyapp/ganeti,yiannist/ganeti,andir/ganeti,leshchevds/ganeti,ganeti/ganeti,yiannist/ganeti,yiannist/ganeti,leshchevds/ganeti,grnet/snf-ganeti,apyrgio/snf-ganeti,dimara/ganeti,apyrgio/ganeti,andir/ganeti,bitemyapp/ganeti,ganeti-github-testing/ganeti-test-1,onponomarev/ganeti,mbakke/ganeti,mbakke/ganeti,ganeti/ganeti,apyrgio/ganeti,apyrgio/snf-ganeti,onponomarev/ganeti,grnet/snf-ganeti,ganeti/ganeti