Outputs working version of "module" resource

Can now parse the Apiary JSON and output the first resource (“module”)
as valid Swagger JSON. Code still stinks pretty bad, though.