delete routes and manytomany delete fix (detach)

Signed-off-by: Alexander Skjolden <alex@plastboks.net>
Merge branch 'deletefix'