Restructuring code, o2o functionality

* bin, config, lib, and test dirs
* Rakefile for running tests