Log support, crud support and tests! Fixes #1