Minor refactoring and cleanup
Added factory methods for web and xml transactions
Minor refactoring