Added gitignore file, example config file and removed unused class
Code renovation:

- Using PDO instead of mysql_*
- Fixed all warnings and notices
- Removed all `?>` at end of file
- General code cleanup