Added initial middleware setup

the three main classes with getters and setters
Merge pull request #1 from HENM1415/middleware

Added initial middleware setup