How do I apply the texture to my object?
The simplified way is to view the rifle from the side in the 3dview, then Press U and select Project From View, then position the uv's over the rifle picture. You would then need to cleanup the top and bottom faces.

You will find any UV unwrapping/mapping tutorial will help explain this more. You can find plenty on youtube.