Reorganized Pebble application.

Collect headers into one file since they effectively
included each other. Did also some documentation.