A few improvements (i hope)

Some fixes, a singleton class for database connection, less code in index.php (so clean), some improved code using Google PageSpeed recomendations and some localized files....check commits detail messages