Moved mime types and actions to yaml

Fixes #2