Reorganize repo
Move tests dir under lib
Add new-style BSD license
Merge pull request #1 from ElBrogrammer/repo-reorg

Repo reorganization