Fix some const function signature problem.
Added MappedResource tempalte class to address the problem of data mapping. It should apply to all the mappable data.
Degrade ConstantBuffer as a simple abstract class.
Complete more interface.