Added Functions from Framework #2

Functions that should not be part of the theme where removed from the
framework and added to the core plugin.