Refactor out a number of file-related methods into FileIO.coffee
Clean up some ports a bit.
Move the note controls to after the note body.
Make sidebars handle overflow more gracefully.