Added caching to autobahn server

Added a caching feature to autobahn and created helper functions and
classes to simplfy the code