adds re soap api integration with heavy refactor

no need to pass around context for db
New API classes