Added wp8 support

Hi,
Added codes for Windows Phone 8.1.
Tested on emulator.
Needs some improvement but it works.