Clean garbage
migrate to PHP5 features and upgrade Code Igniter