Refactor configuration handling and test setups
- Updated tests to use NOTELEAF_CONFIG and NOTELEAF_DATA_DIR environment variables instead of XDG_CONFIG_HOME.
- getEditor method in NoteHandler prioritizes config settings over environment variables.
- Modified LoadConfig and SaveConfig functions to respect NOTELEAF_CONFIG for custom configuration paths.
- Implemented GetDataDir function to handle NOTELEAF_DATA_DIR for data directory management.
- Adjusted database initialization to utilize new configuration paths and ensure directory creation.
- Improved error handling in database operations and ensured proper cleanup in tests.