Cleared up some unused tempaltes
Small code formatting changes.
Implemented asynchronus handling of HTTP requests.