Wrap code in self-executing anonymous function

In order to not expose private functions globally, wrap all code in a
SEAF. Also move webinos.servicedisco.js inclusion to the top, code for
API services must come after that. This is needed for API services to
register its constructor.

Jira-issue: http://jira.webinos.org/browse/WP-1045