intellisense improvements

1. Added functions hints.
2. More field types are now recognized for autocomplete.
3. Some refactoring in app.js.
4. Fixed bug with live preview tab scrollbars.