Add specs. travis integration. allow publishing events via metadata