Multiple fixes to the profiling filter

 - Better matching on ids passed in
 - Ids not always surrounded by brackets
 - By default, don't profile anything that looks like a static resource