fixed Document() behavior ot return nil when doc doesn't exist
made it safe to use bleve.Index object from multiple threads

an RWMutext ensures that only one write op is done at a time, and
that all other ops have finished prior to closing
added additional http handlers to cover most functionality