fix issue #139
Merge pull request #142 from AntoineD/master

fix issue #139
fix issue #136
Merge pull request #143 from AntoineD/master

fix issue #136
Allow running an application using a function call - MyApp.invoke(...)
Merge pull request #149 from koreno/invoke

Allow running an application using a function call - MyApp.invoke(...)