API security and Auth token authentication listener



<!---
@huboard:{"milestone_order":3.0,"order":3.0,"custom_state":""}
-->