Bug #1, Fix PHP class hiearchy, add scaffold Javascript for admin links