Api actions

Added actions to the server APIs to send queries. Nothing gets wired up at the moment though.