Added support for multiple interface switching and javascript event call. Multiple bugfixes.