Initial commits

Structure the library, inital code with Joomla Legacy classes code and
some code from EE lib by Don