Create a real library for Pebble programs

After the discussion http://forums.getpebble.com/discussion/11707/compiling-library-for-pebble-how-can-one-do-it#latest , I decided to develop a real library example.
I thought your library was a good and simple choice for a demo