remove dagwriter in favor of new importer function

This Pull Request removes the dagwriter entirely as it was fragile and inefficient code. This approach is much simpler and consumes less memory as a result.
@whyrusleeping check err before pinning?