Move agreement controller new up in  it's controller.

Add check for new# without the slash and fix the other link redirection.

Add api endpoint for settings and add it to agreement types.