Changed lovebird.template() to return compiled template

lovebird.template() now returns the compiled template as a function
rather than the result of the template. To make this possible the
parameters and usage of the function has also changed.
Moved compilation of page templates to lovebird.init()

All the page templates are now compiled into functions when lovebird is
inited. This avoids having to interpret a page template each time it is
requested.
Changed server to accept all waiting requests that frame

Previously the server would have only handled the most recent connection
on a frame, it now handles all waiting connections.
Changed JS updateDivContent() to check against its own cache

updateDivContent() now checks against its own cache to assure the
content has actually changed before updating the innerHTML of the div.