Added the foundations of a C library for Wagtail and a test application
Changed restore_context so it simply waits if no register block is available