Adding a format method to the String prototype

A format method has been added to the string prototype to enable easy string formatting. 

This commit adds chai and sinon.js to the test package to provide assertions and mocking libraries.
TODO : had a coverage report to the code.