Added unit tests for index.php
- added .gitignore
- Refactored logging
- Removed unused variable
- Other minor refactorings
Included defines.php.sample, defines.php should hold environment-specific settings (like log-file-location)
Put logging to seperate function so file-not-found -case can be handled better