Merge pull request #304 from yilongli/master

included BTrace script for profiling Java KRun
included BTrace script used to profile Java KRun; minor refactorings to ease the writing of BTrace script or circumvent BTrace bugs
restructured things related btrace scripts