Added support for resources (attachments) when creating a note.

Implemented support for adding attachments to a new note using '--resource FILENAME'. The attached files (png/pdf/...) are embedded in the content.

Support for resources in update has not been implemented but should not be too hard to do.