Clecnup formatting
Cleanup ajax code; Add possible base64 encoding of POST data
Fix tmp path in Joomla 1.5