new standard template functions

transferred some standard functions from the twentytwelve theme to kick the functions.php out of the theme folder.