Fix legion and more

Fix on legion:
-  js errors
- sql errors
- error with default groups

New features:
- display legion's member position
- add info into gitignore