Feature/router mode

Forgot to add subnet_mask parameter to socialvpn controller. Also adds features already available in groupvpn controller.