Initial commit of cms api functions.

CMS structure maintainance is nearly complete. Currently working on the file handler for Phonegap.