Refactored URI handling and corrected behavior of pause/play button

Signed-off-by: Cory Feitelson <cfeitelson@roovy.com>