Improvement of build script

Improved structure of output build folder.
Added source packaging.
Added API Doc build and packaging.