Major refactor of views. Add leader checks.

Completely rewrote functions that run the checks on records. Moved all of those functions to operations.py for easier reuse.
Make leader filed text so leader positon 0 does not evaluatue to false