Use formtastic 3.1 with custom namespaces

Closes #3544