Implemented 'p%' in api form. Handl p%h and p%j

Added json and histogram table p% views
Add ?B command to get boundaries (use api)
Rename ahA into ahs