Merge pull request #2 from mannol/#newircforfightingagainstkikels1488

Started moving things around... BEWARE: a lot more changes to come
more callbacks and API functions
peer exiting/timeouts, parting messages, implement callbacks
error checking and some cleanup
Use hash for chat identification