move glutton_ functions to lib/Glutton.php