Begin overhaul

Remove Fancybox
Begin massive refactoring of core PHP