Refactor mod list

Includes #495 but has been rebased onto master. 
This looks pretty awesome, but I'm guessing one needs a plug-in to actually use the contracts themselves? (Judging from an answer on stack-overflow...)