Make WidgetTargetEndpoint follow Wirecloud's code style
Fix friendcode declarations