Added 400 Bad Request handling for v2 client calls, to take into account
staging. Refactored console content into a factory method, and added
wait time for staging log requests when starting an application in case
the log file does not yet exist when a stream attempt is made.