riak_search and merge_index peices of the schema and tests

refactored search bits from riak.schema. unit tests too!