Major cleanup of api, multiple fixes for bulk api, added better csv parsing.