Current CodeIgniter library

Also cleans up some of the "differences" between the zenphoto hacked
version and the standard one. Now only the actual required hacks are
different