Rewrite

Rewrote app to make use of ajax/jquery and threading.