added common file for ui code
added conditional compile for code to work across wp8 and wp7
updated win8 project to use new common ui code