add sort in dict to avoid reordereing
allow arbitrary profile path
use pairs
Merge pull request #2 from stdweird/json2tt_improv

Json2tt improvements