m2m and url

added reverse m2m getting and improved url generation