Added resize ability to form in Cube Sample.
Refactored Sample: Moved reusable code to separate project. Refactored Windows context initialization and increased test coverage.