Merge pull request #3 from bjaanes/master

Small HTML changes
Cleanup some of the note save formatting logic.
- Correct issue where pasting a large image would cause a crash.
- Correct an issue pasting an image into a note.  The hash generated was wrong so the resource
  was lost when it was uploaded.
- Correct issue where indexrunner would crash if it failed to open a PDF.
Added timeout to status bar messages
Add ability to attach files via the context menu.  PDFs can be
attached but are not previewed automatically.
Added logic so when PDFs are attached they are previewed inline.