MySQLi API change, login page, header and welcome page fixes

Changed SQL implementation to MySQLi as per PHP manual recommendations
- mysql() is deprecated.
Added login page which will forward to authentication script (to be
written) in library folder.
Welcome page now uses the new page retrieval method in sql.php.