proxy: commonize the ${method}_main routines

Use common functions for creating the dbus message and
doing the scm transactions whenever passing a request
on to the cgmanager.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>