Changed license to MPL v2.
Moved code to src directory to accommodate the growing project size.