Addition of client model and migration and middleware and context processor updates to handle clients