New notification format, WIP.
Fix for htons->hotonl on 32 bit.
Moved some logic from app delegate.
Some more cleaning.
Whoops.
Auto detect priority.
Merge pull request #20 from blommegard/feature/new-notification-format

Implement new notification format

(Pushing UI-stuff to a later iteration.)