Fix issue #7, properly account for borders, add test cases, handle text-transform and text-indent, remove any dependencies

Hey Jonathan, thanks for this library! I've made some changes to fix the caveats you've listed and some others I've found. Hope you don't mind the nudge to v1.0.0 ;)