Make it possible to override the cf.Cf implementation

Signed-off-by: Ruth Byers <rbyers@pivotallabs.com>
Add CfAsUser helper

This helper:
0. logs in
0. performs the commaned in the passed
0. logs out, regardless of error
0. returns any errors

Signed-off-by: Ruth Byers <rbyers@pivotallabs.com>