Compile erlang record definitions into modules to convert them to/from json easily.