moved middleware back to server package
added session middleware
authentication middleware
basic admin authentication logic
reorganizing structure for clarity
moved appropriate logic to middleware package
Revert f008d40..1084b43

This rolls back to commit f008d40a528aa78c425bd977e1f503ce784a1dcc.
Revert "Revert f008d40..1084b43"

This reverts commit 9a6aec1d1d2d6bf4e298410ed8d1ea49735d283c.
Basic render middleware
Will be trying another framework, save what I have