Fix edit button glitch

When the textarea has focus, clicking outside on the edit button will
close it and immediately reopen it. Use the more restrictive click event
(only counts if the mousedown happens in the same place).

- Add database index for timestamps
- Add notes on virtualenv