Adding support for all components necessary to add custom actions.
This includes: custom media types, usergroups, attaching media to
users (via a usermedia resource), and creating custom actions
which are configured to send messages to a usergroup.

Action messages can be large, so those can be passed either as
a string (:alert_messge) or as a file reference (:alert_message_file)

Deleting all the same items are also supported.  Deleting a
non-existent item will not fail, instead I treat 'action :delete'
on a resource as asserting "this resource must not exist", so
if it already doesn't exist we just silently continue.  The
behavior of the existing user resource was changed to match.

Various find_* routines were added to the API library as needed.
Added support for filtering mediatype on action operations by name

Also made the usermedia resource check for an existing media of this type
on the user and modify it.  Does not support multiple medias of the
same type on one user (two email address).
Merge pull request #2 from apcera/mediatype-api

Adding support for all components necessary to add custom actions.