added gitignore; added the request variable to rest callbacks