added callback and literal expressions, hsp.refresh and hsp.display methods
Prerequisites for testing
Add some tests for parsing html
html parser

right now it can only understand valid html inside a template.
No instruction / values
Parse value definition

These are parsed inside a template, a node, or an attribute
Initial implementation of compiler

This implementation is quite ugly, it should be refactored for beauty.
However it's an initial implementation that allows to write tests for the compiler.
Instructions in templates

This introduces two types of instructions,

* empty : on a signle line (like insert)
* element : with an open and close statement (like if)

! This commit breaks the compiler
Compile instructions

Generate compiled code for simple instructions like insert, if and for
Grunt server task

Define a grunt server task that serves both statics and compiled templates.
This is used by a live editor available on

    http://localhost:8080

after calling `grunt`
change the index structure
Multiple templates in the grammar

Allow to define multiple templates in the same file.
Templates can be separated by any piece of text, this won't be interpreted.

This commit modifies the folder structure for a better unit testing.
Console editor

Modify the playground to put all the logic in the template itself and specify action in a console.
What is done in the console doesn't trigger a full recompilation
foreach instruction in the parser
Instructions as plain text and test for nested instrutions

Singli line instructions that do not start on a new line are considered as plain text.
Adds also some tests to check that nested instruction are detected correctly
Compile instruction

Generate compiled code for template instruction. This also refactors the compiler's test structure
Gists from github

This commit contains a small change to adapt to the new format returned by the code generator, but most important it fetches gists from a github user (non configurable)
Basic event handling

This commit simply aligns with the added parameter for element callbacks that however are not yet implemented in the grammar
Merge pull request #1 from piuccio/html_parser

adding parser and compiler code
added extra test on foreach array
implemented $root.appendToDOM to replace root doc fragment with the new DOM element