Fix deprecation warnings when building scala
Add proper HTML and UI elements for sorting friends list. Fixes #8