added basic data locality based on hostname
moved old examples to tests
moved examples to test