Add CodeMirror search/replace functionality

As per http://community.mybb.com/thread-138227.html.

Additionally, upgrade CodeMirror to 3.18.