Added static library target

Added static library project.
Now the project can be included as a git submodule.
Updated sample app to use static lib.

Used this [tutorial](http://www.galloway.me.uk/tutorials/ios-library-with-resources/)