made ConnectionContext have prototype methods
made connection context have prototype methods so it doesn't have to be passed as arguments