Lifecyles are attached to assets

Major Changes:
	
* Replaced the api code with the model approach used by the site controllers
* Assets are now auto attached to a sample lifecycle when they are created 
* Assets are automatically promoted to the first stage of a lifecycle when created
* API and site controllers now return identical output where appropriate;
* A model based approach to handling rxts:
			var model=modelManager.getModel('gadget');
   Supported operations:
			model.import(<name of importer>, <input data>);
			var output=model.export(<name of exporter>);
			model.save();	//Invokes save actions defined on a field by field basis

Minor Changes:

*Changed the README
*Added log info and debug statements where appropriate
*Removed unused code
*Added comments where appropriate , all files now have a description
			
		
Bugs:

*The created assets can only be viewed by a logged in user
*Asset types other than sites are classed as sites (e.g. Books) [VISIBLE IN THE STORE]	
*Lifecycle states cannot be promoted or demoted
*Lifecycles cannot be detached