server: refactored views into separate modules
fixup! 4a79169aef37369530c7c5b0423bd61ddce088d2