Pretty json

@mattgillooly 

create the definitions dir if it doesnt exist, add option to pretty print the defintion.json via the PRETTY env:

    rake defintion PRETTY=true