Many changes: hide master passwd from stdin; UI changes; some refactoring; DB update support and etc.