Isolate ruby environment and set java heap size

* Clear GEM_HOME and GEM_PATH variables to ensure we are only using
  the gems baked into the kibana jar and don't accidentally use
  the user/system's gem paths (Fixes #1531)
* Set JVM heap size to 512m. If we don't do this, the default (for the
  common JVMs) is 25% of system ram, which is not a desirable default.
[rootSearchSource] set the default index pattern properly on change
[config] log the proper values on change
[notifier] #event() respects returned vals, and promises
remove the pagination updating, for now
stopping point on the refactor
watch for changes to spyMode instead of a custom , add full screen spy checking, only update when spy is opened and closed
don't show full page button if using a full page spy
increase the table row count when in toggling spy fill mode
[savedVis] stop tracking the indexPattern
[rootSearchSource] clean up refresh logic
[savedObject] allow get to load values from root sources
[SearchSource] make #getParent() always run synchronously
typos
Merge pull request #1615 from yuj/patch-3

typos
consolidate code, remove unused _dynamicState
make sure indexPattern get reset if something goes wrong
return undefined or searchSource, not false
code style
Merge pull request #1617 from w33ble/indexPattern/loading-2

Index pattern/loading - after team review