3.1 fixes

 - Specify allowed actions to allow editing
 - Don't use define in url_segment (breaks 3.1 config)

Closes #8