Update app externs for elastic search.
Refactor elastic and api.
Strip old IE code.