Removed some unneeded debug printing. Made virtual resource source and
data selection case-insensitive to better adhere to the URL spec.
Various code improvements