livestatus: import test queries and script

refs #2762
contrib: add flap.sh
update .gitignore