Cleaned up some more. Ported static flow pusher and REST API