cas: add db schema handling functions.
cas: add db schema handling functions.

This adds the basic functions to handle the db schema and versioning. These
functions will be used by the cas to create or migrate a db.

tv42/rkt,michelangelo13/rkt,shtouff/rkt,liugenping/rkt,cab105/rkt,sinfomicien/rkt,tmrts/rkt,robszumski/rocket,akshaykarle/rkt,Wilybald/rkt,sinfomicien/rkt,ChengTiesheng/rkt,dalanlan/rkt,lee212/rkt,MattDees/rkt,squeed/rkt,matthaias/rkt,lucasallan/rkt,alexhersh/rkt,intfrr/rkt,Shashwatsh/rkt,joshix/rkt,dalanlan/rkt,fdserr/rkt,marineam/rkt,kinvolk/rkt,mattthias/pkg-rkt,euank/rkt,sstabellini/rkt,jonboulle/rkt,tv42/rkt,marineam/rkt,alexhersh/rkt,Yhgenomics/rkt,rkt/rkt,joshix/rkt,adfernandes/rkt,markllama/rkt,crawford/rkt,tmrts/rkt,s-urbaniak/rkt,bsmr-go/rkt,iaguis/rkt,klizhentas/rkt,chrisseto/rkt,rot26/rkt,s-urbaniak/rkt,lee212/rkt,ybubnov/rkt,coreos/rkt,liugenping/rkt,ybubnov/rkt,chrisseto/rkt,yifan-gu/rocket,monstermunchkin/rkt,rhvgoyal/rkt,sgotti/rkt,smarvin/rkt,mjg59/rkt,wparad/rkt,tixxdz/rkt,jakon89/rkt,nhlfr/rkt,il9ue/rkt,crawford/rkt,lucasallan/rkt,jasonchaffee/rkt,Shashwatsh/rkt,Shashwatsh/rkt,squaremo/rkt,liubq919/rkt,il9ue/rkt,clearlinux/rkt,wparad/rkt,yifan-gu/rkt,jjlakis/rkt,rhvgoyal/rkt,jjlakis/rkt,fdserr/rkt,krnowak/rkt,squaremo/rkt,jakon89/rkt,MattDees/rkt,ramitsurana/rkt,il9ue/rkt,squeed/rkt,squaremo/rkt,dgonyeo/rkt,jzelinskie/rkt,ChengTiesheng/rkt,cab105/rkt,jasonchaffee/rkt,kbrwn/rkt,monstermunchkin/rkt,markllama/rkt,luebken/rkt,rhvgoyal/rkt,liubq919/rkt,dgonyeo/rkt,iankronquist/rkt,krnowak/rkt,michelangelo13/rkt,Wilybald/rkt,Wilybald/rkt,kinvolk/rkt,nhlfr/rkt,tixxdz/rkt,bsmr-go/rkt,fdserr/rkt,robszumski/rocket,lucasallan/rkt,kinvolk/rkt,eyakubovich/rkt,intelsdi-x/rkt,liubq919/rkt,sstabellini/rkt,jonboulle/rkt,adfernandes/rkt,sstabellini/rkt,shobhit85/rkt,adfernandes/rkt,lsm5/rkt,blixtra/rkt,kinvolk/rkt,ChengTiesheng/rkt,ramitsurana05/rkt,Yhgenomics/rkt,crawford/rkt,MabinGo/rkt,shobhit85/rkt,squeed/rkt,krnowak/rkt,rkt/rkt,eyakubovich/rkt,maquanyi/rkt,iankronquist/rkt,sinfomicien/rkt,mike1729/rkt,sgotti/rkt,yifan-gu/rocket,ramitsurana/rkt,achanda/rkt,coreos/rkt,xnox/rkt,Yhgenomics/rkt,ramitsurana05/rkt,joshix/rkt,intfrr/rkt,smarvin/rkt,lsm5/rkt,ybubnov/rkt,linki/rkt,monstermunchkin/rkt,clearlinux/rkt,alban/rkt,iaguis/rkt,alexhersh/rkt,marineam/rkt,mattthias/pkg-rkt,kbrwn/rkt,ramitsurana05/rkt,michelangelo13/rkt,tv42/rkt,intelsdi-x/rkt,jjlakis/rkt,lsm5/rkt,jasonchaffee/rkt,jzelinskie/rkt,blixtra/rkt,klizhentas/rkt,intelsdi-x/rkt,dgonyeo/rkt,markllama/rkt,blixtra/rkt,iankronquist/rkt,jonboulle/rkt,luebken/rkt,lucasallan/rkt,nhlfr/rkt,akshaykarle/rkt,linki/rkt,clearlinux/rkt,yifan-gu/rkt,eyakubovich/rkt,jzelinskie/rkt,luebken/rkt,mjg59/rkt,achanda/rkt,alban/rkt,Wilybald/rkt,xnox/rkt,mike1729/rkt,tmrts/rkt,sgotti/rkt,shobhit85/rkt,rkt/rkt,rot26/rkt,dalanlan/rkt,iaguis/rkt,euank/rkt,MabinGo/rkt,endocode/rkt,yifan-gu/rkt,euank/rkt,mike1729/rkt,xnox/rkt,intfrr/rkt,MattDees/rkt,coreos/rkt,liugenping/rkt,maquanyi/rkt,rkt/rkt,endocode/rkt,s-urbaniak/rkt,mattthias/pkg-rkt,yifan-gu/rocket,rot26/rkt,tixxdz/rkt,joshix/rkt,endocode/rkt,chrisseto/rkt,matthaias/rkt,matthaias/rkt,ramitsurana/rkt,mjg59/rkt,robszumski/rocket,alban/rkt,klizhentas/rkt,linki/rkt,MabinGo/rkt,shtouff/rkt,maquanyi/rkt,achanda/rkt,lee212/rkt,akshaykarle/rkt,smarvin/rkt,jakon89/rkt,kbrwn/rkt,bsmr-go/rkt,shtouff/rkt,wparad/rkt,cab105/rkt