Add replace and fix promise managment
Add BAD_PARAMETER and INVALID_QUERY errors
Add tests for invalid query (non-string)
ModelManager module and tests
Make model server bootstrappable