Initial commit.

This contains a lot of PHP code written by a non-PHP programmer learning
his ways around Joomla's libraries so there are ugly bits in here you
might giggle at but hey - it works!