Build: Add stuff for automated testing and Move output to dist/.