Improve scanning of keywords

- Remove trailing newlines from token text
- Don't match keywords inside identifiers
- Don't match conditional keywords as method calls
Don't match /* comments */ inside strings
Fix relative URIs in method invocations