Add <regex> to required header list

Add identity::assert_regex and identity::assert_not_regex
Modify order of function implementations in lib/identity.cpp to match
interface.

Modify identity assert functions for a small refactor in how error
messages are constructed.