fixed route constraints
/chp/api now displays JSON api documentation
changed /chp/api chtml style
updated api style + docs