Added more complex message template factories.

also added IDs to behaviours for easier indexing.