URL path extraction, serves up HTML or BMP depending on path extension