Flashmessages class for use with wordpress