initial.rev10

*old todo:bootstrap.js:
-note: the images and likely the js src file is not linking to because
its realtive, its real weird, need to fix :todo
-note: todo: biggest thing is i started attaching stuff to about page
but it really needs some focus and cleaning up this is the main thing
-learned: you can have window without gBrowsewr or tabContainer, but
changing location here removes the load listener attached to its
DOMWindow, so note: todo: research: i have to try to watch these
somehow, maybe keep that initial load in handler intact, or attach it to
aXULWindow
-todo: note: make aXULWindow be same as aXULWindow in onOpenWindow for
my getEnumerator iterator through windows

*old todo:icong.png, icon orig size.psd, icon redu size.psd:
-note: i got it down to 32x32 but learned ff4 does 48x48 so second draft
i should do that, for this first draft i shrunk stuff down in the "icon
redu size.psd" to get it to fit into 32x32, so make it 48x48 with no
reducing (use file "icon orig size.psd") :todo

*old todo:frontend.htm
-so now that about module is registered, the relative paths seem broken
for the imgs and js file, i tried <img src="compile.png"> "/compile.png"
"\compile.png" none of them worked, note: need to find solution :todo
-note: still need to work on that scroll bug on status thing when msgs
are added, need to keep scroll at bottom :todo

*bootstrap.js
-fixed bug: in readHistoryFile, createHistoryDom was outside the async
callback
-fixed display: it would display double back slash in added divs for
paths, that fix was content.path = path.replace(/\\/g,'\\\\'); changed
it to (/\\\\/g,'\\');
-fixed design: when browsed and then selected folder it would add that
same folder (compile target), i made it add parent now
-added design: removes empty
-fixed bug: when startdir existed in btnBrowser_click there was
misspelling in startDirNsiFile
-changed design: in pane click functions doing while loop to get
parentDiv which we will run querySelector on
-fixed bug: in paneRecs_click it was checking if id was == recs but it
should be == folders
-fixed bug: querySelector uses four backward slashes to match a single
backward slash ln261
-fixed bug: discovered that max css value for order is 2147483647, so
now using moded lastCompiled value for order. am subtracting the getTime
from 1/1/2014 and then turning it to seconds. use 1/1/2014 or install
time of addon, as user will not have any history with dates prior to
that. this is just because i want to keep order positive values.
-fixed bug: when click on xpi, need send compileDirPath, not path of xpi
-fixed bug: was not closing </span>'s in the xpi inner html add div
lines (2 lines)
-added design: number_format for adding commas, this is a port of
number_format from php (http://snipplr.com/view.php?codeview&id=5945)
-added design: format_filesize
(http://snipplr.com/view.php?codeview&id=5949)
-fixed bug: in updateHistory func i was using historyJson.recs in the
xpi section

*frontend.htm
-fixed design: made #folders and #xpis display flex and direction
column-reverse, so order works
-added design: made #folers and #xpis start off with "No Recently
Selected Folders" and "No Recently Compiled Directories"
-added design: because of above line, i have to dir column revverse the
xpi indvid divs inside