factor out duplicate code

tasx-26
serialize user in domain class instead of controller

tasx-26
update code spacing

tasx-26
Merge pull request #16 from osu-mist/feature/tasx-26-refactor

Feature/tasx 26 refactor