Added option to use WebSmart XML or REST Service.
No fucntional changes. Converted back to spaces from tabs. Sorry about that!
Comment, white space cleanup. No functional changes.
Merge pull request #3 from tonydew/add-rest

Added option to use WebSmart XML or REST Service.