Adds support for adding addresses in API #113
Adds button for adding address #113
Use entity.primary_address #113
Input split for new address in API #113
Split input for new address in template #113
Use names consistent with database in API #113
Use names consistent with API in template #113
More compact checking for missing variables. #113
Add var'' in front of local variables in template #113
Gather entity updates in one function, use alias functions to choose the correct update_type. Note: untested code.
Prepare API for action_type in requests. #143
Rename entity_update in API. #143
Rename entity_update in template. #143
Revert "Prepare API for action_type in requests. #143", since it is not
needed

This reverts commit 9427bacc1ad6c0135601a2466de60dd30b8eb0d8.
Back to entity_update with two arguments, using data['new'] as source of
information in API. #143
Use new as source of information in template. #143
api: remove stray entity_update_primary_*

Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
entity_update: make api consistent with comments

Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
entity_udpate: fix javascript injection

Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
api: remove superfuous '% attr'

Signed-off-by: Bas Westerbaan <bas@westerbaan.name>