Fix edit view to act depending on request method.
Fix new var view to act based on request method.
Mv variant.models methods to Variant classmethods