Added initial support for sorting of notes, in debug mode as well as stubs for debianization. (Coming soon).