added authorized function decorator (authenticated user owns resource), also added gitignore rule to ignore files ending in ~ (I'm looking at you, Nate)