Converted to a static lib

These days I find working with static libraries to be pretty nice.  If folks are using older versions of Xcode, this may be a problem, but if they are up to date it should work out well.  I also moved the tests over, without changing them, to a target so they can be run when the main project builds.