move manager functionality to manager file
reject null id for JSONRPC10
simplify condition
add tests
fix import paths