Added invite controller and invite generation

Added invite generation and saving mechanism