Added new integration test for archive.php cron script.

Notes:
  - Modified ManySitesImportedLogs fixture to add segments if desired.
  - Switch to synchronous execution of curl requests until deadlocking issue in archive processing is dealt with.
  - Fixed bug in LogAggregator where if a segment required a subquery, archiving would failed.