Update Makefile file

 * Set `GOOS' and `GOARCH' if not already defined
 * Clean old data before running tests
 * Test Go code for race conditions (add `-race' flag)
Add top-level collections retrieval in library API