fixed timing issues, added ajax loading gif for slow connections.
minor tweaks
merging cfdev with master