gitattributes for LF normalization and error messages

Added a gitattributes file which makes cross platform development easier which allows github to automatically detect lineendings.

Added some PHP error_reporting and display_error configuration.

Added error message in index.php if mysql connection fails