Agent API updates
App core fixes
Added local agent, main download client refactoring