Add optional support for promises.

Template#compile and Template#render will now return promises
if there are no callback functions given.
Removed unused and deprecated code
Bump version to 0.3.1
Merge branch 'release/0.3.1'
Merge branch 'release/0.3.1' into develop
Merge branch 'develop'