Add tests, and windows surface support

This pull request adds two things:

1.)  Tablet detection for WinRT tablets.  I pulled the regex from Mobile-Detect, and verified that it worked with an actual WinRT device.
2.)  Tests.  I love to test my changes, and since I didn't see any tests I got the tests up-and-running with Minitest.