connect UI to back end, style page.
make JavaScript class more configurable, and escape HTML in view.
added comments.
report curl errors to client.
trim stray comma from end of category list.
refactored XML parsing into document-level and node-level methods.
suppress all LibXML errors and handle them manually.
added instructions.