MediaGoblin source code. This is only for reference.