First crack of the new cwrcwriter and api. The api/writer is still under development, and as a result is buggy and is not persistant with data.