IssueID #4: Added base url and version to config file, now referenced in index.html
IssueID #5: connect portal with autoring too
IssueID #4: reduce code