LB code cleanup, Build cleanup, Scheduler fixes

- cleaned up pbs_environment
- fixed scratch reporting script (tests for mount before reporting)
- added support for minimum time between LB resource reports
- several memory leak fixes in scheduler
- code cleanup in scheduler