Metro support added

changed primary project type to a windows 8 metro app, and moved
exisiting code to a class library