Example tag implementation

Just made an implementation of example tags (standalone and inline) as a compiler pass.
Hope to cover all requirements for this now.

closes #1145
fixes #48
fixes #369