Generalize the MOTD module so that it can be used by multiple applications

The changes I have mentioned generalizes the module and extend the 
usage to N number of applications in the environment. For instance, 
there are 10 different applications running on around 50 servers, the
same module can be used. There would be one template each for a
unique application.