Issue 1699 - All functions and actions are added as function imports and action imports.
https://aspnetwebstack.codeplex.com/workitem/1699

Per protocol bound action/function should not be added as
actionImport/functionImport. But now they become imports.

This bug is a regression from a previous checkin. I've fixed the bug and added
the respective unit tests to cover the cases that weren't tested and that caused
the behavior change to go undetected.