Refactor into multiple namespaces
Merge branch 'master' into gh-pages