Using note titles as keys in the database.

This makes it easier to add support for inter-note linking.
When trying to view a nonexitent note, we get redirected to the editor.