Base plugin development

Includes;
- construction
- method creation (e.g. checkbattery, createMessage)
- includes demo (HTML file) showing a call to the global method and
then passing a callback for invoking.