fix naming conflict check
fix tabbed interface index
add getFields helper, use it to fetch scripted and indexed fields
expose type maps on the CastMappingType function
add type for scripted fields, show it in the list
show scripted fields when script is selected
set scripted status on agg param, set value on params.field
add script agg param, remove scriptable flag from field agg param
add scipt param to terms, update param builder template
add script param type, don't append field when script is defined
tweak the script/field ui
remove script agg param, it's all field now
remove script param, remove script param input, fix indexedFields tab state