Added DNI Utils

Modularized DNI Utils as separate static methods. Added login checking.
Fix DNI. Improve student build. Fix record, login.

It's currently working on both pre-HC and post-HC. It gives problems with the reload on landscape/portrait after a switch.
Further fix login. Remove gen/. Added strings.
Added changes on preferences prior to branching
Fix sort order.

Sort order should be actually working