More refinements to consistency tokening.
Add adverse events as an opat only field on antimicrobials.

refs openhealthcare/elcid#232
Allow for optional argument in Episode.newItem()

refs openhealthcare/elcid#246
Make line complication a lookup list

refs openhealthcare/elcid#180
Refactor javascripts
Tests passing commit.
add episode back to tagging
Update tagging logic.

Tags are a special-cased subrecord with custom view for updates.

This allows us to fire custom triggers on team changes for e.g. referral logic.

refs openhealthcare/elcid#227
First implementation of new tagging.

refs openhealthcare/elcid#227
Update add patient modal to make hospital a drop-down.

refs openhealthcare/elcid#32
Refactor tagging logic to fix bugs post refactor.

refs #227
First pass plugin API entrypoints
Cosmetic changes and refactoring of visuals
Merge branch 'master' into extract
Kill nonsense migrations
Add _fieldnames to subrecord models.

Use this statically declared shortcut to get fieldnames_to_serialise if it's defined.

refs openhealthcare/elcid#226
Frist commit - developer docs.