added ability to fire scripts per docpad event

Added shell collection poulation and ability to fire scripts per docpad
event using the "when" option.