restructured include for edit form
removed MOODLE_INTERNAL checks from class-only scripts
added phpunit config files
refactored and repositioned grouping methods
Initial work on unit test framework