Add support to generate oozie workflow documents
Added support for custom MySQL port, fixed a bunch of small bugs.