Move BugFlow api class to a library folder. Modify buildbug script to match changes in projects