Added R.trim method and simple test. Closes #401

Uses MDN polyfill to comply with ES3.
There probably should be a test case for other space characters (`\t`, `\n`, `nbsp`, etc)... take a peek at es5-shims tests or smt