redirect index.php, frankenstyle functions lib.php

added redirects dependant on  if you are admin or not when visiting the
index.php file. Update function names to correct frankenstyle naming
convention