Add modules for each components, define plugins

UI is completely moved to javascript

Change-Id: I8c2fb29d437a82919bf83e77659d8e20caa979a8