Generalization of D3D render for W8 and WP8, Custom renderer for custom code, refactoring