refactoring AsyncStorage

Extracted the code that starts queue processing into separate method and changed close method to run in main thread (at that time, the UI is no longer available anyway). Also moved some of the fields and methods that are not needed by child classes into private scope.
this is now part of parent class AsyncStorage
XML files are written into temporary files first
Rename action for notes
Context menu for notes
Default app locale is now properly set