changing (i hope for the last  time since release) template system.
now using a inheritance based template system.

FIXED :
	-> refreeshcontract now work fine
	-> broadcastmessage now work fine
cool stuff