Remove hard dependence on html/textile source formats.

This code was a part of pull request #1 but now it refactored not to have dangerous use of class variables. The hash of available source formats is filled during plugin loading.