fix bug where no cards were being selected if include and exclude were empty
add ability to respond with JSON programmatically
Merge remote-tracking branch 'origin/master'