Add references autocomplete and select to the users module. Update templates for cleaner menu item names, and some minor improvements to the indentation/formatting of the generated code