combine addIndex and addSecondaryIndex

addIndex now uses options object

build a secondary index only when parent key is
included as a parameter in the options object
combine addIndex and addSecondaryIndex in TreeDB

also use options object
add sample indexes for boards and threads
implement addIndexes method

used for adding an array of indexes by model
use addIndexes and sample index models in test/store