Addition of option to get username/password and working directory from the configuration XML

Some services require a specific useraccount to be supplied to run under. Similarly some require a specific working directory.

This change allows both username (and password), and the working directory to be specified in the configuration XML.

A nUnit test project has been added to cover these additions.

Finally, the code has been tidied up using Resharper to assist.