Add a method to install custom mime types

This is needed by the backup feature.
Testing is added.

Signed-off-by: Gonzalo Odiard <godiard@sugarlabs.org>