Feature #62

Ability to auto-lock the database https://www.keepassx.org/dev/issues/62

Also corrected an issue which prevents KeePassX from crashing if a database has an empty UUID field or and empty date field. (see http://www.keepassx.org/forum/viewtopic.php?f=5&t=2696&p=6119#p6119 )