Add test scripts for running monitor/publisher mode

Change-Id: I0b7006123c31cf167fafcf6b3aa2cdf660f81666
fix some python 3 issues

Change-Id: Ie540d360feaed79a06beaedc0650b788208360cd
beaker fails under python 3 so make it optional

Change-Id: I68c6b27720c7233af8fbb3d52c43733159944580
prefix console output to differentiate it from the app under test

Change-Id: I59fe38e74d6de1e6ae9eb7e2dffc3597266d3811
fix the way the replay command calls the output formatter

Change-Id: I5999813a245f23223cc4828104d145102d702bd0
wait for data to be written to database before exiting

Change-Id: I80629ec1ad44f4d6448195681ab4fd9fbdba2d05
use threading as another source of info about stdlib path

Change-Id: I04459dffc48546c9c94746c70fd20b0263b8a4d7
make run_test.sh work from project root dir

Change-Id: If6783048c340acfbd9f6117ba263b68b4d0ad7ac
fix test behavior after changing listener encoding

Change-Id: I5c21accf78eefb959fa13efb28b3343fe7b2897c
flake8 fixes

Change-Id: I18806fbd7d961cedbee8e7a22bc9173be8f5ac0d