make slug required, and add safe fn name regex.

Making slug required to encourage concise and clean function prefixes.

#285 and #583