More GetConditions.coffee changes

Added logic to parse options to JSON if a string is provided, made some
changes to the URL creation, and fixed indentions.