explicitly set VALID_ARCHs

while this doesn't seem to be needed in Xcode,
building from the command-line setting the
arch to i386 fails without mentioning i386 in
VALID_ARCHS
don't overwrite the deployment target in the project file
fix {NS,UI}LineBreakMode deprecation warnings
fix present/dismissModalViewController deprecationWarnings
add application tests & command line compatibility

* add application tests via the sample app
* add separate schemes for the logic+application tests that
 have the test target in the run phase
* add a Makefile to keep track of how to run the tests