this fixed a memory leak, but caused bulk indexing to fail. reverting for now.
this compiles
gofmt
got tests to compile; still need to check that tests actually pass
rename BulkSync and move error counts around
unit tests pass!
Merge branch 'master' of github.com:shutej/elastigo

Conflicts:
	lib/corebulk.go