When an app is published, the first card is set to visible so it will act as the index page for the app.
Merge pull request #1619 from flukeout/indexpage

Sets first card as index card for published apps.
Bugfix for duplicate components in tray when a custom component is loaded.
Components are only added to the tray if they already haven't been added.
added missing semicolon
Merge pull request #1623 from secretrobotron/trayfix

Bugfix for duplicate components in tray when a custom component is loade...