Added support for normal functions to be observers.

Bumped version number to 0.2 and also added appropriate tests.