Pass search options into getAvgsForUrl()

This will enable the line graph to have more detail as searches are
done.
Add filtering for getAvgsForUrl.