Add application options json object
Impliment code review suggestions,refactor code with application options
Replace in-memory array with HTML5 LocalStorage sessionStorage and impliment array a-like prototype to do less changers to exciting code base