Add various small fix and code refractor for the sample demo
Merge branch 'developer/tuan08' of github.com:DemandCube/NeverwinterDP-Commons