adding function skeleton for the mets-project module
Cleaning up controller.xql

- replacing nested if/else statement with switch/case
- adding in-code documentation