Several trivial simplifications

* Drop unneeded load_plugin() and unload_plugin() functions.
* Remove unneeded variables.
* Use strchr() instead of reinventing it.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
Update progress status texts

Choose texts that are more in line with the official libpurple
protocols.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
waprpl_blist_node_*(): Bail out early

Return early instead of wrapping the whole function body in an if-block.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
Remove HTML/XML special entities

By default, libpurple escapes HTML/XML special characters such as double
quotes (resulting in "&quot;" being sent). Avoid this by converting
these sequences back to the original characters.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
Merge pull request #39 from cryptocrack/trivial-cleanups

Trivial cleanups
Add offline status

Register the offline status to make sure waprpl_close() actually gets
called when the user decides to go offline. Fixes #8.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
Merge pull request #40 from cryptocrack/remove-xml-special-entities

Remove HTML/XML special entities
Merge pull request #41 from cryptocrack/fix-offline-status

Add offline status
Oops I forgot to merge this, sorry!
wa_api.cc: Add explicit type casts

We need to cast C strings to std::string before passing them to the
WhatsApp protocol engine. Add missing explicit casts.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
Use proper default resource

Use a proper default resource instead of misusing the user agent string
as a resource string. The default value is taken from the yowsup
sources. This hopefully fixes issue #37.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>