Add recon:get_state/2 to allow custom timeouts

If some calls are epxected to take more than 5s, the current get_state
function is useless. This patch allows a customizeable timeout instead.