Rename API functions and throw errors

Review URL: https://api.github.com/repos/google/traceur-compiler/issues/1287

Closes #1287.