Check value of tag is True before adding it

Refs openhealthcare/elcid#350
Tidy up a bit.

Refs openhealthcare/elcid#350
Merge pull request #234 from openhealthcare/350-tagging

Check value of tag is True before adding it
Fix trailing comma in add_episode_modal

refs openhealthcare/elcid#331
Minor css fix
Dates before 2000 should use YYYY; add tests

refs openhealthcare/elcid#185
Nicer fix for trailing comma
Remove old episode_lookup stuff

Refs openhealthcare/elcid#372
Fix tests
Merge pull request #237 from openhealthcare/372-episode-lookup

Fix js error when adding episodes for existing patients
Merge pull request #236 from openhealthcare/185-short-date-test

Dates before 2000 should use YYYY; add tests
Merge pull request #235 from openhealthcare/331-add-record

Fix trailing comma in add_episode_modal
Merging upstream extract
Remove trailing commas
refs openhealthcare/elcid#300
Update discharge list to work with new tagging system.
refs openhealthcare/elcid#300
Use a fancy progress bar for loading / saving

Refs openhealthcare/elcid#209
Merge pull request #240 from openhealthcare/209-loading-bar

Use a fancy progress bar for loading / saving
Merge pull request #238 from openhealthcare/300-trailing-comma

300 trailing comma
Check the category of the episode instead of the 'active' status.
It's far more clinically relevant.
refs openhealthcare/elcid#333
Merge pull request #241 from openhealthcare/307-discharge

307 discharge