updated controller to work in vagrant, added a vagrant file