Rewrote script to support a new feature and to simplify logic
Rewrote script to support a new feature and to simplify logic

- spot now searches for input as normal string if it isn't a valid
  spotify url
- simplified some code that was roundabout
- removed all globals
- factored out operations into functions

arjunnu/open-with-spotify