quick proto for the SM-based CEP

Works for atomic patterns. Note, this is a proof-of-concept proto and
shall be extended for complex event patterns and some architectural
refactoring is required as well.