Added Php 5.2 support and mimetype loading

Now the library should have full PHP 5.2 support and the mimes types will load directly from the mime file of config codeigniter.