Challenges embedding Kibana visualizations in elasticsearch _site plugin

@Mark_Harwood If you were running code within Kibana you could simply call the indexPattern.refreshFields() method and the field list would be rebuild. Not sure I can imagine a better way to expose this, short of moving this logic to the server and exposing a REST API (a solution we plan to implement someday).