Apppr 9 widget signatures and example certificates

http://jira.webinos.org/browse/APPPR-9

This fixes some bugs and adds support for widget signing through Paddy's Java tool.

Jira issue: APPPR-9