added new backend and agent plugin
different files per flush
only collects latest metrics, and cleans up old stuff
back to a single file flush
fixed a tiny bug