[master] add code for tumblr auth within index.php