Add optional argument for AgaviTesting::dispatch() to trigger exit with status code and return test result from AgaviTesting::dispatch(), closes #1347 and closes #1348