Add application metadata and validators

Allow plugin code to store data on the application.  Currently limited to
10KB, string keys, and values that are strings, numbers, or lists of strings
and numbers.

@ncdc, @danmcp review