Fixes popup resizing error

Popup was not taking into account the padding amount when calculating
its size. This commit corrects that.
Refactors loading status

Refactors loading status box to include fullscreen or not option so
same element can be used for page loading and ajax updating.
Refactors AJAX

Refactors AJAX code to reflect changes in HTML/CSS