Adapted to new Add/Edit Product functions

* controllers/_database.php : Created getCatID(), isAdmin(). Refactored
and improved Add/Edit product functions.
* controllers/_templating.php : New loadAdminView() function.
* views/admin.index.php : Refactored and added Categories

Some minor edits in few files.