Pulled-in SimpleOwinApp + minor changes.