Also extracts static emoticon cache to a field in order to increases testability of filter_emoticon, because we are now able to reset the static emoticon cache before tests, particularly for observing the response to changing $CFG->emoticons.