puppetboard/app.py: Optimizing the inventory page
puppetboard/app.py: Optimizing the inventory page

Instead of querying PuppetDB for every fact that it knows about only
querying it for the fact names that it knows about. The result is a
much smaller result set that is more noticable on environments with
large numbers of nodes and/or facts.

On one environment with > 2500 fact-names and 35 nodes a curl test
to the facts endpoint without any query string returned in ~3.5 seconds.
Ran another curl test to the facts endpoint with the query string that
the code in this commit creates, the command finished in ~0.040 seconds.

johnzimm/xx-puppetboard,holstvoogd/puppetboard,james-powis/puppetboard,johnzimm/puppetboard,stoyansbg/puppetboard,tparkercbn/puppetboard,johnzimm/xx-puppetboard,tparkercbn/puppetboard,puppet-community/puppetboard,tjayl/puppetboard,holstvoogd/puppetboard,mterzo/puppetboard,mterzo/puppetboard,grandich/puppetboard,tjayl/puppetboard,stoyansbg/puppetboard,voxpupuli/puppetboard,johnzimm/xx-puppetboard,grandich/puppetboard,grandich/puppetboard,voxpupuli/puppetboard,voxpupuli/puppetboard,johnzimm/puppetboard,puppet-community/puppetboard,james-powis/puppetboard,tjayl/puppetboard,grandich/puppetboard,tparkercbn/puppetboard,james-powis/puppetboard,puppet-community/puppetboard,tparkercbn/puppetboard,holstvoogd/puppetboard,stoyansbg/puppetboard,mterzo/puppetboard,johnzimm/puppetboard,mterzo/puppetboard,johnzimm/xx-puppetboard