Split messageform between post and reply tempaltes
Some code refactoring
Corrected cache clearing issues