Improved class

Changes:
* Added method to handle times
* Fixed the iduser problem to create cookie
Changes in Login

Changes:
* Changed column key to keypass due to PDO bug
* Implemented SQL inserts for login and now, what is stored in the
cookie is a key, not the password itself