Register custom lookup properly in Django 1.7

Django 1.7 introduces a proper API for registering custom lookups, rendering the old manual injection way non-functional. This makes use of the proper API for registering the ``similar`` lookup, while keeping backwards compatibility.