reorganize the api modules to fit into usual pattern
incorporate profile to run nosetests