RAYO-93 : Implement CPA spec on Rayo
Added some classes from Moho's CPA branch to unblock some commits on the
Rayo server project.