Initial dialogue count method
Hack to add language:javascript kv pair to views in couchdb. Need to do this better :(
Add idx key to dialogue doc when creating new dialogues. idx is number of dialogues + 1
Get rid of redundant cast to int