Successful REST impl.

Yay! I finally got it working. For some reason, the combination of my
previous code and testing locally via MAMP was causing unforeseen
errors. All is well now.