neubot.hh: nonworking cast operators: quick fix
Make log.h usable from C++
neubot.hh: swig should not see the cast
log.c: Android: use the logcat
log.h: add __attribute__ format printf
Android.mk: define NEUBOT_ANDROID for log.c

If we define NEUBOT_ANDROID, log.c uses the Android specific
functions to print log messages onto the logcat.
gen_java was a leftover
gen_cxx: do not sort

As we learned, certain classes (e.g., Poller) must come first.
libneubot.json: move poller at the beginning

So that the poller appears at the beginning of neubot.hh.
gen_cxx: replace broken cast with ->pointer()

The cast was broken and crashed the Android process. Replace it with
a function named ->pointer(), which is invoked when needed.
configure: re-enable gen_cxx

Now that we have the Poller at the beginning and the ->pointer()
feature, the autogenerated neubot.hh should be OK again.
neubot.hh: regen

The net effect is, basically, that we replaced ->get_struct with
->pointer() and that the broken cast operators are gone.
Merge branch 'gen_cxx'

Fix the issues spotted by Alessandro in gen_cxx (that Poller shall
be at the beginning and that the case operator is broken) and reenable
the gen_cxx script in ./configure.
Rewrite pollable using C++

Bump the API, because the C signature of NeubotPollable's
construct() and attach() changed.
Use a destruction strategy compatible with C++

When you destruct a compound object in C++, the derived classes
are destroyed before than the base classes.

Therefore, we cannot have a destruction strategy that starts from the
derived objects, reaches the base objects and then propagates back the
destruction notification, as we do in Neubot.

Rather, the destruction shall start from the derived objects and
stop once the base objects are reached.
pollable: implement timeout
Merge branch 'pollable.cpp'

This branch contains the work, done by Alessandro and me, that starts
to slowly switch the code from C to C++.
Unbreak NeubotPoller_resolve()

We are bumping the API to 2.0.0: while at it, let's also
unbreak the resolve() API.
neubot.hh: regen
Merge branch 'unbreak-resolve'