fixed site_url var so it works with index.php or without, fixed logout path issue