code refactor/organization - plugin namespace, separate hooks/events/pagehandlers