update template library

Update template library with more flexibility using baseview, layout, javascript, and css. Inpired by some template library on the net