Sync message class changes from Prototype

This merges the changes from 7f211fbe8b3bf756eaadfc11c5230bb29b86ce7f
to the application templates. Fixes #65.
Update changelog.
Bump version number to 6 for master.