Refactor pid selector into common namespace

- move pid selector CSS to menu.less
- move directive to Common ns

#490