Added compatibility functions

Some compatibility functions have been introduced. Some of the basic
functions of qTranslate have been reproduced in order to make the plugin
transition smoother.
Minor "caching" has been introduced to the is_*() functions.