Use require.js

Reorganize folders (lib inside src)