Adding support for Windows Phone 8 and 8.1

Adding support for Windows Phone 8 and 8.1
Tested on Windows Phone Emulator 8.1 and Windows Development Phone 8.0