added demo pages and changed script loading

Removed the index.html file in favor of demo pages.
Also changed the way scripts are added to IA types. It is now a part of
the typeObject file, and must me placed in the portal folder.