Added log and text files to be ignored. Tidy up of .htaccess.
Added DB class to deal with database connection (Singleton class).
Adjusted various files to use the newly introduced DB Class. Continuation on using PDO. Refactored some functions to be PSR compatible.