CONNECT-294 Declare allocate functions in header
CONNECT-294 Tidy up includes in templates
CONNECT-294 Move link handling to backend.  Use backend instead of parsing nodes
CONNECT-294 Update some remaining functions to use backend API for links
CONNECT-312 Add profiling of CRUDL calls.  Needs update to save on every access
CONNECT-312 Remove unused code
CONNECT-312 Move filename management into save function
CONNECT-312 Correct saving of profiles
CONNECT-314 Update mutexes to include cloning etc.
CONNECT-311 Fix the oa_config lookup, correct back-end update()
and have oaprocci clone() when inserting into back-end
from an action or DELETE.

corest/restrequest.c
Altered: "dump_rest_request()" output.

oaprocci/oacontract.c
Added: "onapp_action_context" - "onapp_clone"; "use_onapp_configuration_action()", "use_onapp_configuration_crud()".
Altered: "handle_onapp_action_context()" to clone when necessary;
"do_onapp_action_alert()" to dump output;
"create_onapp_vm()" and "create_onapp_vm()" to use CRUD search for onapp configuration;
"delete_onapp_contract()" to dump output, use CRUD action context, and handle action at completion;
"stop_onapp()" to use action context TODO handle error->alert;
"use_onapp_configuration()" to take additional "is_active" and "check_is_active" arguments;
"resolve_onapp_configuration()" to take additional "is_active" and "check_is_active" arguments and pass them through to filter;
"stop_onapp_provisioning()", "start_onapp_provisioning()", "shutdown_onapp_provisioning()", "restart_onapp_provisioning()" and "destroy_onapp_provisioning()" to use action search for onapp_configuration.

oaprocci/oacontract.h
Altered: "use_onapp_configuration()" and "resolve_onapp_configuration()" to take additional "is_active" and "check_is_active" arguments.

oaprocci/oaprocci.c
Altered: "create_onapp()" to use CRUD action context.

oaprocci/onapp_helpers.c
oaprocci/onapp_helpers.h
Tidied up dump functions.

tools/cog/templates/node_backend.c
Altered: "XXX_rebase_node_contents()" to check not updating node already in linked list.
CONNECT-314 Add missing linker reference
CONNECT-314 Update tests for accept */*
CONNECT-314 Fix memory leak
CONNECT-314 Fix locking on node backend
CONNECT-314 Always clone on update in backend
CONNECT-288 Simplify templates by running simple substitution pass first
CONNECT-314 Clone objects when passed to backend->update
Make sure DELETE clones on update
CONNECT-315 Tidy handling of common rest responses
CONNECT-315 Fix some compiler warnings