Minor code improvements

Short php tags replaced with full php tags to be compatible with apache\nginx php default configs
Added gitignore file
Config.php file moved to config.php.sample 
Added enviroment switcher in config file for debug purposes