Improve the can_user_add model hook to allow it to pre-examine data for context.
Update license headers on test code.