Fully integrated ResourceQueues and ResourceAgents. Things work well (except when there are no more events, but this is a general bug that needs fixing sometime). Changed initialization function for QueueNetwork. Temporary change for initial queue types.