big checkin, fixes #9, handling common configs, also detects require calls in define/require callbacks, fixes other bugs