JA-4708 Add labels to permits and allow them to be counted.
JA-4708 Added permit release and more tests.