Clean up file saving related logic
Add pwd to save-as filechooser
Make file-io load throw exception
Use bkCoreManager.showErrorModal instead of alert()