CLOUDSTACK-810: Make DirectAgent thread pool size configurable Removed hard-coding of directagent thread pool size and now reading it from configuration

Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>
ApiDispatcher: In case of incorrect long int value or uuid, throw error

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>